/*
 * @lc app=leetcode.cn id=2357 lang=typescript
 *
 * [2357] 使数组中所有元素都等于零
 */

// @lc code=start
function minimumOperations(nums: number[]): number {
    let list: number[] = [];
    for (let i = 0; i < nums.length; i++) {
        const element = nums[i];
        if (element > 0) {
            if (!list.includes(element)) {
                list.push(element);
            }
        }
    }
    return list.length;
}
// @lc code=end
